CFLAGS = -Wall -O2 -DERRO_DELAY

all: tier_app.o cksum.o package.o stop_wait.o

clean:
	/bin/rm -f  *.o *~ test

test: cksum.o
	gcc $(CFLAGS) cksum.o test.c -o test

cksum.o: cksum.c cksum.h
	gcc $(CFLAGS) -c cksum.c

package.o: package.c package.h
	gcc $(CFLAGS) -c package.c

stop_wait.o: stop_wait.c stop_wait.h
	gcc $(CFLAGS) -c stop_wait.c
